package com.hzvtc.myproject.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
@Accessors(chain = true)
public class Faculty {
    private Long id; // Faculty ID

    @NotBlank
    private String name; // Faculty name

    private Long parentId; // Parent faculty ID

    private Integer orderNum; // Order number for sorting

    private List<Faculty> children; // List of child faculties

    private Integer studentNum; // Number of students in the faculty

    private List<Student> students; // List of students in the faculty
}
